package com.yylending.las.personal.bandcard;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

public class BoundBankCards {
	public List<BankInfo> bankCardList = new ArrayList<>();
	public static class BankInfo implements Parcelable {


		/**
		 * number : 1238******8093
		 * bank : 000004
		 * bankName : 中国建设银行股份有限公司总行
		 * name : 池辰
		 */

		/**
		 * 银行卡号
		 */
		private String number;
		/**
		 * 银行代码
		 */
		private String bank;
		/**
		 * 开户行
		 */
		private String bankName;

		public String getNumber() {
			return number;
		}

		public void setNumber(String number) {
			this.number = number;
		}

		public String getBank() {
			return bank;
		}

		public void setBank(String bank) {
			this.bank = bank;
		}

		public String getBankName() {
			return bankName;
		}

		public void setBankName(String bankName) {
			this.bankName = bankName;
		}

		@Override
		public int describeContents() {
			return 0;
		}

		@Override
		public void writeToParcel(Parcel dest, int flags) {
			dest.writeString(this.number);
			dest.writeString(this.bank);
			dest.writeString(this.bankName);
		}

		public BankInfo() {
		}

		protected BankInfo(Parcel in) {
			this.number = in.readString();
			this.bank = in.readString();
			this.bankName = in.readString();
		}

		public final static Creator<BankInfo> CREATOR = new Creator<BankInfo>() {
			@Override
			public BankInfo createFromParcel(Parcel source) {
				return new BankInfo(source);
			}

			@Override
			public BankInfo[] newArray(int size) {
				return new BankInfo[size];
			}
		};
	}
}
